package com.jeecg.p3.commonluckymoney.dao;

import com.jeecg.p3.commonluckymoney.entity.WxActCommonluckymoneyRecord;
import org.apache.ibatis.annotations.Param;
import org.jeecgframework.p3.core.utils.common.PageQuery;
import org.jeecgframework.p3.core.utils.common.PageQueryWrapper;
import org.jeecgframework.p3.core.utils.persistence.GenericDao;

import java.util.List;

/**
 * 描述：</b>WxActCommonluckymoneyRecordDao<br>
 * @author：pituo
 * @since：2015年12月08日 16时43分34秒 星期二 
 * @version:1.0
 */
public interface WxActCommonluckymoneyRecordDao extends GenericDao<WxActCommonluckymoneyRecord>{
	
	public Integer count(PageQuery<WxActCommonluckymoneyRecord> pageQuery);
	
	public List<WxActCommonluckymoneyRecord> queryPageList(PageQueryWrapper<WxActCommonluckymoneyRecord> wrapper);
	
	public Integer getMaxAwardsSeq(@Param("awardsId")String awardsId);
	
	public WxActCommonluckymoneyRecord queryRecordByActIdAndOpenid(@Param("actId")String actId,@Param("openid")String openid);
	
	/**
	 * 查询list
	 * @param actId
	 * @return
	 */
	public List<WxActCommonluckymoneyRecord> queryListByActId(@Param("actId")String actId);
}

